package com.ynny.example03;

public class FruitTest {
    public static void main(String[] args) {
        Apple apple = new Apple();
        apple.setName("苹果");
        apple.setArea("昭通");
        apple.setPrice(10);
        System.out.println(apple);

        Orange orange = new Orange();
        orange.setName("橘子");
        orange.setArea("广西");
        orange.setPrice(15);
        System.out.println(orange);

        Peach peach = new Peach();
        peach.setName("桃子");
        peach.setArea("云南");
        peach.setPrice(20);
        System.out.println(peach);





    }
}
